//用来封装数据库的操作
// get the client
const mysql = require('mysql2');

// Create the connection pool. The pool-specific settings are the defaults
const connections = mysql.createPool({
  host: 'localhost',
  user: 'root',
  password:'admin',
  database: 'aolai',
  waitForConnections: true,
  connectionLimit: 10,
  queueLimit: 0
});
module.exports = connections.promise();